package pack1;

import org.springframework.context.ApplicationEvent;
/**
 * Created by jack on 2017/7/4.
 * 自定义事件
 */
public class DemoEvent extends ApplicationEvent {
    private static final long serialVersionUID = 1L;
    private String msg;

    public DemoEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
        System.out.println("DemoEvent：：DemoEvent（）");
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}
